package com.hugegis.Service;

import com.hugegis.CustomView.Strings;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class OpenUpDataBroadcastReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		/*
		 * try { if (PreferenceManager.getDefaultSharedPreferences(context.
		 * createPackageContext(Strings.PACKAGE,
		 * 0)).getBoolean(Strings.SETTINGS_REFRESHENABLED, false)) {
		 * context.startService(new Intent(context, HugeService.class)); }
		 * context.sendBroadcast(new Intent(Strings.ACTION_UPDATEWIDGET)); }
		 * catch (NameNotFoundException e) { }
		 */
		if (intent.getAction().equals(Strings.ACTION_UPDATA)) {
			System.out.println("Service------------------------start");
			context.startService(new Intent(context, FetcherService.class));
		}

	}

}
